<div id="module_video_player">
	<!--Vdo Player-->
	<div id="moduleVdoPlayer">
		<?php if($this->agent->is_mobile()):?>
			<video id='module_my_video' controls muted preload='none'></video>
		<?php endif;?>
	</div>
</div>
<script type="text/javascript" language="javascript">
	(function($) {
	/*whatever jQuery stuff*/
		$(function(){
			var is_mobile = '<?php echo $this->agent->is_mobile();?>';
			var url = "http://static.you2play.com/2013/ads/extra_video.mp4";
			if(is_mobile){
				//Set Video Source
				$('#module_my_video').append("<source id='mp4' src='"+url+"' type='video/mp4'>");
				$('#module_my_video').attr('src',""+url+"");
				$('#module_my_video').attr('width',300);
				$('#module_my_video').attr('height',170);
				//Auto Play && Loop
				$('#module_my_video').attr('autoplay','autoplay');	
			} else {
				var playlist = [{file:""+url+""}];
				jwplayer("moduleVdoPlayer").setup({
					"autostart": true,
					"mute": true,
			      	"flashplayer": "<?php echo js_asset_url('media/player.swf');?>",
					"playlist": playlist,
			      	"width": 300,
			      	"height": 170,
			      	"plugins": "<?php echo js_asset_url('media/vp_plugin.swf');?>",
			      	"vpdomain": "http://th-pmdplus.videoplaza.tv",
			      	"vpshares": "extra",
			      	"vptags": myDynamicTag(),
				  	"vpContentid": mygwdTagData(),
					"closebuttontimeout": 5,
					"vptimeout": 15000,
					"stretching" : "exactfit",
				});						
			}	
		});	
	})(jQuery);
</script>